package com.camerareader;

import android.app.Application;
import android.app.Service;
import android.content.Intent;

import com.camerareader.upload_list.UploadService;
import com.camerareader.util.SharedPreferencesUtil;

/**
 * Created by Administrator on 2016-12-22.
 */

public class App extends Application {
    private static App app;

    @Override
    public void onCreate() {
        super.onCreate();
        app = this;
        SharedPreferencesUtil.init(this);
        Intent serviceIntent = new Intent(this, UploadService.class);
        startService(serviceIntent);
    }

    public static App getApp() {
        return app;
    }



}
